from rest_framework.response import Response
from rest_framework import status

class AppResponse(Response):

    def __init__(self, data=None, code=0, message='', status=200, **kwargs):
        wrap_data = {
            'code': code,
            'message': message,
            'data': data
        }
        super().__init__(wrap_data, status=status, **kwargs)
